package com.sunday.common.core.constants;

/**
 * 日志常量
 *
 * @author zsy
 * @since 2022/10/13
 */
public interface LogConstants {

    /************************************    项目入口请求打印   **************************************/

    String request_format = "[Request] Body : {}";

    String request_format_aop = "[Request][Aop] Body : {} , trace : {}.{}";

    String bind_format = "[Bind] Current User : {}";

    /************************************    项目出口响应打印   **************************************/

    String response_format_ack = "[Response][Ack] Body : {}";

    String response_format_nack = "[Response][Nack] Body : {} , cause : {}";

    String response_format_throwable = "[Response][Throwable] Body : {} , cause : {}";

    /************************************    异常情况处理   **************************************/

    String error_format = "[Error] cause : {}";

    String error_enum_format = "[Error] code : {}, message : {}, trace : {}";

    String error_response_format = "[Error] Body : {} , cause : {}";

    /************************************    RPC 系统交互打印   **************************************/

    String rpc_request_format = "[RPC][Request] Body : {}";

    String rpc_response_format = "[RPC][Response] Body : {}";

    /************************************    HTTP 系统交互打印   **************************************/

    String http_request_format = "[HTTP][Request] url : {}, Body : {}";

    String http_response_format = "[HTTP][Response] Body : {}";

}
